module.exports = {
  devServer: {
    proxy: {
      "/api/github/user": {
        target: "https://api.github.com/user",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api/github/user": "",
        },
      },
      "/api/github": {
        target: "https://github.com/",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api/github": "",
        },
      },
      "/api": {
        target: "http://localhost:9212",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
